#ifndef DLG_BOOKGS_H
#define DLG_BOOKGS_H

#include <QDialog>
#include "lib/sqlmgr.h"
#include <QStandardItemModel>
#include <QStandardItem>
#include <QMessageBox>
#include <QDebug>

namespace Ui {
class Dlg_BookGS;
}

class Dlg_BookGS : public QDialog
{
    Q_OBJECT

public:
    explicit Dlg_BookGS(QWidget *parent = 0);
    ~Dlg_BookGS();

    void setBookid(int bookid);

    void initBookView();

    void initUserView();

private slots:
    void on_btn_search_clicked();

    void on_btn_borrow_clicked();

private:
    Ui::Dlg_BookGS *ui;
    int bookid;

    QStandardItemModel m_model;
};

#endif // DLG_BOOKGS_H
